// --------------------------------------------------------------------------------------------------------------------
// <copyright file="EngineNodeConfigurationElement.cs" company="dimamartovoi">
//   Apache License
//   Version 2.0, January 2004
//   http://www.apache.org/licenses
// </copyright>
// <summary>
//   The engine node configuration element.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

using System.Configuration;

namespace ActorModel.Infrastructure.Configuration.XML
{
    /// <summary>
    ///     The engine node configuration element.
    /// </summary>
    public class EngineNodeConfigurationElement : ConfigurationElement
    {
        #region Public Properties

        /// <summary>
        ///     Gets the connectors.
        /// </summary>
        [ConfigurationProperty("connectors")]
        public EngineConnectorsElementCollection Connectors
        {
            get
            {
                return (EngineConnectorsElementCollection)this["connectors"];
            }
        }

        /// <summary>
        ///     Gets the id.
        /// </summary>
        [ConfigurationProperty("id", IsRequired = true)]
        public int Id
        {
            get
            {
                return (int)this["id"];
            }
        }

        /// <summary>
        ///     Gets the init state.
        /// </summary>
        [ConfigurationProperty("initState", IsRequired = true)]
        public string InitState
        {
            get
            {
                return (string)this["initState"];
            }
        }

        #endregion
    }
}